package com.Jano.controller;/**
 * @ClassName : UserController
 * @Description :
 * @Author : Jano
 * @Date: 2022-07-24 13:50
 */

import com.Jano.dto.JsonResult;
import com.sun.tracing.dtrace.ProviderAttributes;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author zoumaoji
 * @date 2022/07/24 13:50
 **/
@RestController
public class HelloController {

    @RequestMapping("/hello")
    @PreAuthorize("hasAuthority('system:dept:list')")
    public JsonResult login(){
        return new JsonResult().setCode(200).setData("登陆成功");
    }
}
